<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
    <title>Metabolite Graph</title>
</head>
<body>
	<h1>The network contains {{nmet}} nodes and {{nlink}} links. The average path length is {{al}} and cluster coefficient is {{cluster}}. It is 
		{% if not con %}
		not 
		{% endif %}
	       	fully connected.</h1>
    <b>
    <table Border bgcolor="grey" frame="box" cellspacing="2" CELLPADDING="5">
	    <tr><td><a href="/knev/mgraph/save/">Save network</a></td>
		    <td><a href="/knev/mgraph/vis/">Visualize</a></td>
		    <td><a href="/knev/mgraph/degree/">Degree Distribution</a></td>
		    <td><a href="/knev/mgraph/cen/">Centrality Analysis</a></td>
		    <td><a href="/knev/mgraph/con/">Connectivity Analysis</a></td>
		    <td><a href="/knev/mgraph/path/">Find Paths</a></td>
</tr>
</table>
</b>
<table cellspacing="5">
<thead>
<tr>
	<th>Metabolite 1</th>
	<th>Metabolite 2</th>
	<th>Reaction</th>
</tr>
</thead>
<tbody>
	{% for link in metlinks %}
	<tr><td><a href="http://www.genome.jp/dbget-bin/www_bget?cpd:{{link.com1}}">{{link.com1}}</a></td>
		<td><a href="http://www.genome.jp/dbget-bin/www_bget?cpd:{{link.com2}}">{{link.com2}}</a></td>
		<td><a href="http://www.genome.jp/dbget-bin/www_bget?rn:{{link.rea}}">{{link.rea}}</a></td>
		{% endfor %}
	{% comment %}
	{% for link in mls %}
	<tr><td><a href="http://www.genome.jp/dbget-bin/www_bget?cpd:{{link|slice:"0:1"}}">{{link|slice:"0:1"}}</a></td>
		<td><a href="http://www.genome.jp/dbget-bin/www_bget?cpd:{{link|slice:"1:2"}}">{{link|slice:"1:2"}}</a></td>
		<td><a href="http://www.genome.jp/dbget-bin/www_bget?rn:{{link|slice:"2:3"}}">{{link|slice:"2:3"}}</a></td>
		{% endfor %}
{% endcomment %}		
</tbody>
</table>
</body>
</html>
